package org.ziyuandagong.folder.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 自愿打工
 * @since 2024-12-06
 */
@TableName("folder_share")
@ApiModel(value = "Share对象", description = "")
public class Share implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件夹共享记录唯一标识符")
    private String shareId;

    @ApiModelProperty("被共享的文件夹ID")
    private String folderId;

    @ApiModelProperty("被分享的目标用户ID")
    private String sharedToUserId;

    @ApiModelProperty("共享链接")
    private String shareLink;

    @ApiModelProperty("共享密码")
    private String sharePassword;

    @ApiModelProperty("共享开始时间")
    private LocalDateTime shareStartTime;

    @ApiModelProperty("共享结束时间")
    private LocalDateTime shareEndTime;

    public String getShareId() {
        return shareId;
    }

    public void setShareId(String shareId) {
        this.shareId = shareId;
    }
    public String getFolderId() {
        return folderId;
    }

    public void setFolderId(String folderId) {
        this.folderId = folderId;
    }
    public String getSharedToUserId() {
        return sharedToUserId;
    }

    public void setSharedToUserId(String sharedToUserId) {
        this.sharedToUserId = sharedToUserId;
    }
    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }
    public String getSharePassword() {
        return sharePassword;
    }

    public void setSharePassword(String sharePassword) {
        this.sharePassword = sharePassword;
    }
    public LocalDateTime getShareStartTime() {
        return shareStartTime;
    }

    public void setShareStartTime(LocalDateTime shareStartTime) {
        this.shareStartTime = shareStartTime;
    }
    public LocalDateTime getShareEndTime() {
        return shareEndTime;
    }

    public void setShareEndTime(LocalDateTime shareEndTime) {
        this.shareEndTime = shareEndTime;
    }

    @Override
    public String toString() {
        return "Share{" +
            "shareId=" + shareId +
            ", folderId=" + folderId +
            ", sharedToUserId=" + sharedToUserId +
            ", shareLink=" + shareLink +
            ", sharePassword=" + sharePassword +
            ", shareStartTime=" + shareStartTime +
            ", shareEndTime=" + shareEndTime +
        "}";
    }
}
